package net.com.hydroPK.model.skills.fletching;

import net.com.hydroPK.Engine;
import net.com.hydroPK.model.Player;

public class FletchingInterface {


    public static void OptionInterface(Player p, int[] Items) {
        if (Items.length == 4) {
            int[] child = new int[]{9, 13, 17, 21};
            p.getActionSender().showChatboxInterface(p, 305);
            for (int i = 0; i < 4; i++) {
                p.getActionSender().ItemOnInterface(p, 305, 2 + i, 200, Items[i]);
                p.getActionSender().setString(p, "<br><br><br><br><br>" + Engine.items.getItemName(Items[i]), 305, child[i]);
            }

        }
        if (Items.length == 3) {
            int[] child = new int[]{8, 12, 16};
            p.getActionSender().showChatboxInterface(p, 304);
            for (int i = 0; i < 3; i++) {
                p.getActionSender().ItemOnInterface(p, 304, 2 + i, 200, Items[i]);
                p.getActionSender().setString(p, "<br><br><br><br><br><br>" + Engine.items.getItemName(Items[i]), 304, child[i]);
            }
        }
        if (Items.length == 2) {
            int[] child = new int[]{5, 11};
            p.getActionSender().showChatboxInterface(p, 303);
            for (int i = 0; i < 2; i++) {
                p.getActionSender().ItemOnInterface(p, 303, 2 + i, 200, Items[i]);
                p.getActionSender().setString(p, "<br><br><br><br><br><br>" + Engine.items.getItemName(Items[i]), 303, child[i]);
            }
        }
    }
}
